package com.forekenow.Demo8.Exercise.E4;

public class Adventure {
    public static void main(String[] args) {
        Hero hb =new Hero("xz");
        hb.swim();
        hb.fight("可以飞");
        hb.fly();
        CanFly cf = hb;
        cf.fly();
        CanSwim cs = hb;
        cs.swim();
        ActionCharacter ac = hb;
        ac.fight("不可以飞");
        ac.speak("我可以");

    }
}
